CUDA_INSTALL_PATH ?= /opt/cuda
CUDA_SDK_PATH ?= /opt/cuda-sdk/

NVCC    := $(CUDA_INSTALL_PATH)/bin/nvcc
NVCCFLAGS := --ptxas-options=-v 

LIBPATH   := -L$(CUDA_SDK_PATH)/C/lib64

LIBS    := -lcutil
INCLUDES  +=  -I$(CUDA_INSTALL_PATH)/include -I$(CUDA_SDK_PATH)/C/common/inc

async:
	$(NVCC) async.cu -o test   $(NVCCFLAGS) $(LIBPATH) $(LIBS) $(INCLUDES)

sync:
	$(NVCC) sync.cu -o test   $(NVCCFLAGS) $(LIBPATH) $(LIBS) $(INCLUDES)


clean:
	rm test

